#! /bin/csh -f
# Test example 4
# Ton Rullmann and Jurgen Doreleijers 
#  - output filtering suggested by Kris Boulez

echo ""
echo "Test Example 4: redunchk script"
echo "---------------------------"
#echo "Aqua directory:" $aquaroot
echo ""
\cp $aquaroot/exmpls/Test_Big.pdb .
\cp $aquaroot/exmpls/Test_Big.noe .
$aquaroot/scripts/redunchk Test_Big.pdb > /dev/null
echo "=================================================================="
echo "Differences for output file redunchk.log:"
echo "=================================================================="
diff redunchk.log $aquaroot/exmpls/redunchk.log | gawk '{ tus = $0; getline \
    if (($0 !~ /Reading lower/ ) && ($0 !~ /Aqua program directory:/) && ($2 !~ /^[0-9].[0-9]u$/)) \
    { print tus; print $0 } }' -
echo ""

